﻿<phone:PhoneApplicationPage
    x:Class="OnlineMovies.Views.AddQuiz"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
      xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
     xmlns:inputtoolkit="clr-namespace:MarkHeath.StarRating;assembly=MarkHeath.StarRating"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait" Orientation="Portrait"
    mc:Ignorable="d"
    shell:SystemTray.IsVisible="False">

    <!--LayoutRoot is the root grid where all page content is placed-->
    <Grid x:Name="LayoutRoot" Background="{StaticResource bipivot}">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>

        <!--TitlePanel contains the name of the application and page title-->
        <StackPanel x:Name="TitlePanel" Grid.Row="0" Margin="10,17,0,28" Orientation="Horizontal">
            <Image Style="{StaticResource DetailPagePivotTitleImage}" x:Name="imgTitle" MouseLeftButtonDown="imgTitle_MouseEnter"/>
            <TextBlock x:Name="tblkVideosTitle" Text="Add Quiz"  Style="{StaticResource DetailPagePivotTitle}" />
        </StackPanel>

        <!--ContentPanel - place additional content here-->
        <Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,-5,12,0">
            <Grid.RowDefinitions>
                <!--<RowDefinition Height="Auto"/>-->
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="80"/>
            </Grid.RowDefinitions>
            <!--<StackPanel Orientation="Vertical" Grid.Row="0" Margin="0,-8,0,0">
                <StackPanel Orientation="Horizontal">
                    <TextBlock x:Name="type" Text="Quiz Name" Margin="15,0,0,0" Foreground="White"></TextBlock>
                    <TextBlock x:Name="valid" Text="Required" FontSize="16" Foreground="Red" Margin="250,4,0,0"  Visibility="Collapsed" ></TextBlock>
                </StackPanel>
                <toolkit:AutoCompleteBox InputScope="Text" SelectionChanged="tblkshowname_SelectionChanged_1"  Name="tblkshowname" Width="500"  Margin="0,-7,0,0"  ValueMemberBinding="{Binding Name}" FilterMode="Contains" ItemsSource="{Binding}" KeyUp="tblkshowname_KeyUp_1"  Height="73">
                    <toolkit:AutoCompleteBox.ItemTemplate>
                        <DataTemplate>
                            <TextBlock Text="{Binding Name}" ></TextBlock>
                        </DataTemplate>
                    </toolkit:AutoCompleteBox.ItemTemplate>
                </toolkit:AutoCompleteBox>
            </StackPanel>-->
            <StackPanel Orientation="Horizontal" Grid.Row="0" Margin="0,-20,0,0">
                <StackPanel Orientation="Vertical" Margin="0,5,0,0">
                    <TextBlock x:Name="valid1" Text="Required" FontSize="15" Foreground="Red" Margin="250,20,0,0" Height="15" HorizontalAlignment="Center" Visibility="Collapsed"></TextBlock>
                    <toolkit:PhoneTextBox x:Name="questiontbx" LengthIndicatorVisible="False" HorizontalAlignment="Left" FontSize="20"  Width="400"  Hint="Add Question"   Margin="0,2,0,0" ></toolkit:PhoneTextBox>
                </StackPanel>
                <Image x:Name="question" Source="/Images/online.png" Margin="0,28,0,0" Height="48" Width="48" MouseLeftButtonDown="desimg_MouseLeftButtonDown_1"></Image>
            </StackPanel>
            <StackPanel Orientation="Horizontal" Grid.Row="1" Margin="0,-20,0,0">
                <toolkit:PhoneTextBox x:Name="option1tbx" LengthIndicatorVisible="False"  HorizontalAlignment="Left" FontSize="20"  Width="400"  Hint="Add Option A"    Margin="0,08,0,0"></toolkit:PhoneTextBox>
                <Image x:Name="option1" Source="/Images/online.png" Margin="0,8,0,0" Height="48" Width="48" MouseLeftButtonDown="desimg_MouseLeftButtonDown_1"></Image>
            </StackPanel>
            <StackPanel Orientation="Horizontal" Grid.Row="2" Margin="0,-20,0,0">
                <toolkit:PhoneTextBox x:Name="option2tbx" LengthIndicatorVisible="False" HorizontalAlignment="Left" FontSize="20"  Width="400"  Hint="Add Option B"    Margin="0,08,0,0"></toolkit:PhoneTextBox>
                <Image x:Name="option2" Source="/Images/online.png" Margin="0,8,0,0" Height="48" Width="48" MouseLeftButtonDown="desimg_MouseLeftButtonDown_1"></Image>
            </StackPanel>
            <StackPanel Orientation="Horizontal" Grid.Row="3" Margin="0,-20,0,0">
                <toolkit:PhoneTextBox x:Name="option3tbx" LengthIndicatorVisible="False" HorizontalAlignment="Left" FontSize="20"  Width="400"  Hint="Add Option C"   Margin="0,08,0,0"></toolkit:PhoneTextBox>
                <Image x:Name="option3" Source="/Images/online.png" Margin="0,8,0,0" Height="48" Width="48" MouseLeftButtonDown="desimg_MouseLeftButtonDown_1"></Image>
            </StackPanel>
            <StackPanel Orientation="Horizontal" Grid.Row="4" Margin="0,-20,0,0">
                <toolkit:PhoneTextBox x:Name="option4tbx" LengthIndicatorVisible="False" HorizontalAlignment="Left" FontSize="20"  Width="400"  Hint="Add Option D"   Margin="0,08,0,0"></toolkit:PhoneTextBox>
                <Image x:Name="option4" Source="/Images/online.png" Margin="0,8,0,0" Height="48" Width="48" MouseLeftButtonDown="desimg_MouseLeftButtonDown_1"></Image>
            </StackPanel>
            <StackPanel Orientation="Horizontal" Grid.Row="5" Margin="10,-10,0,0">
                <TextBlock x:Name="anstblk" Text="Choose Answer" Height="40"></TextBlock>
                <toolkit:ListPicker x:Name="lpickranswers"  Width="150" ></toolkit:ListPicker>
            </StackPanel>
            <StackPanel Orientation="Horizontal" Grid.Row="6" Margin="15,-5,0,0">

                <StackPanel Orientation="Vertical">
                    <TextBlock x:Name="localtblk" Foreground="White" Text="Image From Local"></TextBlock>
                    <Image x:Name="userlocalimg"  Visibility="Visible" Source="/Images/fromlocal.png" Height="200" Width="200" HorizontalAlignment="Left" Margin="10,5,0,0" MouseLeftButtonDown="userlocalimg_MouseLeftButtonDown_1"></Image>
                </StackPanel>
                <StackPanel Orientation="Vertical" Margin="60,0,0,0">
                    <TextBlock x:Name="onlinetblk" Foreground="White" Text="Image From Online"></TextBlock>
                    <Image x:Name="useronlineimg"  Visibility="Visible" Source="/Images/fromonline.png" Height="200" Width="200" HorizontalAlignment="Left" Margin="10,5,0,0" MouseLeftButtonDown="useronlineimg_MouseLeftButtonDown_1"></Image>
                </StackPanel>
            </StackPanel>
        </Grid>
    </Grid>
    <phone:PhoneApplicationPage.ApplicationBar>

        <shell:ApplicationBar IsVisible="True" IsMenuEnabled="False">

            <shell:ApplicationBarIconButton x:Name="btnsave" IconUri="/Images/PlayerImages/save.png" Text="Save" Click="btnsave_Click_1"/>

        </shell:ApplicationBar>
    </phone:PhoneApplicationPage.ApplicationBar>
</phone:PhoneApplicationPage>